package com.example.ruralservicedigitalplatform;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.core.env.ConfigurableEnvironment;

@Slf4j
@SpringBootApplication
public class RuralServiceDigitalPlatformApplication {

    public static void main(String[] args) {
        ConfigurableEnvironment env = SpringApplication.run(RuralServiceDigitalPlatformApplication.class, args).getEnvironment();

        log.info("\n----------------------------------------------------------\n\t" +
                        "Application: rural-service-digital-platform is running Success! \n\t" +
                        "Local URL: //localhost:8080/doc.html\n\t" +
                        "Document: http://localhost:8080/doc.html#/home\n" +
                        "----------------------------------------------------------",
                env.getProperty("spring.application.name"),
                env.getProperty("server.port"),
                env.getProperty("server.port"));
    }

}

